package mode.factory.gcff;

/**
 * 工厂方法模式测试
 *
 * @author xjx
 * @date 2023/7/18 10:21
 */
public class MainTest {
    public static void main(String[] args) {
        //五菱工厂
        WulingFactory wulingFactory = new WulingFactory();
        Car car = wulingFactory.getCar();
        car.name();
        //特斯拉工厂
        TeslaFactory factory = new TeslaFactory();
        Car car1 = factory.getCar();
        car1.name();
    }
}
